#pragma once
#include "Personal.h"
#include "Product.h"
#include "Basket.h"


class CCustomer : public CPersonal
{
public:
	void setName(CString sName){m_sPersonalName = sName;};
	CString getName() {return m_sPersonalName;};

	void setDate(CString sDateBorn){m_sDateBorn = sDateBorn;};
	CString getDate(){return m_sDateBorn;};

	void setAdress(CString sAdress){m_sAdress = sAdress;};
	CString getAdress(){return m_sAdress;};

	void setCode(CString sCode){m_sCode = sCode;};
	CString getCode(){return m_sCode;};
	void setBill(const CString& sBills){m_sBill = sBills;};
	CString getBill(){return m_sBill;};
	void addBill(CString sBill){m_sBill += sBill;};

	int getAge();
	bool goBuy(CBasketProduct* pBasket);
	bool goWarranty(CProduct* pProduct);

	

private:
	CString m_sCode;
	CString m_sPersonalName;
	CString m_sDateBorn;
	CString m_sAdress;
	CString m_sBill;
	CBasketProduct* m_pBasket;
};